<?php
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}

$time_start = microtime_float();

$arr = Array();
$arr[0]=1;
$arr[1]=2;
$num = 2;
$k = 1;
$len = 9999999999967543;
while(true)
{
    $temp = $arr[$num-1]+$arr[$num-2]+$k;
    $sum = 0;
    for($i=0;$i<count($arr);$i++)
    {
        $sum = $sum + $arr[$i];
    }
    if($sum + $temp>$len)
    {
        break;
    }
    $arr[$num]=$temp;
    $num=$num+1;
}
$time_end = microtime_float();
$time = $time_end - $time_start;

echo "Did nothing in $time seconds\n";

echo "\r\n";
echo count($arr)+2;